home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / treiber / drucker / lexmark / optrae / windows / optraewi.exe / LINSUNFL.ZIP / SUNFL.LIN
INI File  |  1995-11-07  |  5KB  |  203 lines

  1. [Variables]
  2. ;
  3. ; >>>
  4. ; >>> BEGINNING OF NLS -- Start translating hesetupre.
  5.  
  6. ; >>>
  7. ; >>> Do not translate the variable name on the left, only translate the
  8. ; >>> quoted string.
  9. ; >>>
  10. ;
  11. $APPNAME = "Lexmark Optra E Printer Installation"
  12. $DOSETUPMSG = "In order to use DOS versions of\nHarvard Graphics 3.0, WordPerfect 6.0, or\nAutoCad 12 or 13 with your Lexmark Optra E\nprinter, you should run the setup utility from\nthe DOS diskette."
  13. $FINALMSG = "Thank you for choosing a printer from Lexmark!\nFor technical support, or to extend your warranty protection, please contact Lexmark or your local reseller.  View the 'Read Me First' file for more information."
  14.  
  15. $Str_Prompt_RemoteMV = "Would you like to allow client workstations to run MarkVision directly from the network?"
  16.  
  17. $Str_CompName_LInstall = "Lexmark Install for Windows"
  18. $Str_CompName_Server = "Server Installation Files"
  19. $Str_CompName_Sunflower = "Optra E Drivers and Utilities"
  20. $Str_ItemName_ReadMe = "Optra E Read Me"
  21. $Str_ItemName_Support = "Lexmark Support"
  22.  
  23. $Str_Disk_Setup = "Windows Setup Diskette"
  24.  
  25. ; >>>
  26. ; >>> END OF NLS -- Stop translating here
  27. ; >>>
  28.  
  29.  
  30. ;
  31. ; System variables...
  32. ;
  33. $READMEFILE = "rdme4026.txt"
  34. $SUPPORTFILE = "software.txt"
  35. $LOGOFILE = "sunfl.bmp"
  36. $INSTALLMETHODS = "ECS"
  37. $INSTALLMODE = "E"
  38. $INSTALLMACRO = "Install"
  39. $SERVERINSTALLMACRO = "ServerInstall"
  40. $SIZECOMPONENT = "SunflowerAll"
  41. $SERVERAPPDIR = "optra_e.w16"
  42. $DRIVERCOMPONENT = "Drivers"
  43. $DRIVERMACRO = "UpdateSunflowerDriver"
  44. $MINTEMPSPACE = "2200"
  45.  
  46. $ShowSerial = $NO                                ;used by GenPort()
  47.  
  48.  
  49.  
  50. ; Location of lexpanel.ini
  51. $LexpanelINI = $LexpanelINI
  52.  
  53.  
  54. ;
  55. ; Temporary strings
  56. ;
  57. $TempString = ""
  58.  
  59.  
  60.  
  61. [Disks]
  62.  
  63. Setup = $Str_Disk_Setup, setupdsk.bmp, 255, 0, 0
  64. DrvDisk = $Str_Disk_Setup, setupdsk.bmp, 255, 0, 0
  65.  
  66.  
  67. [Banners]
  68.  
  69.  
  70.  
  71. [Components]
  72.  
  73. ; Normal installation components
  74. SunflowerAll = "", , , , , (MarkVision, VXD, PCL5, SpeakerDrv,
  75.         Network, SINGLECHOICE, Netware, LanMan, Other)
  76.  
  77. ; Server components
  78. ServerSunflower = $Str_CompName_Sunflower, , $SERVERAPPDIR, Setup, 42,
  79.              (=sunfl.lin, =help.lin, =cmdline.rsp, =sunfl.bmp, =setupdsk.bmp)
  80.  
  81. LInstall = $Str_CompName_LInstall, , , Setup, 350, (=list.dll, =dibapi.dll,
  82.                 =ptzipw16.dll, =ctl3d.dll, =ver.dll, =toolhelp.dll, =ldlg.dll,
  83.             =linserv.dll, =linstall.exe, =linstall.hlp)
  84.  
  85. ServerInstall = $Str_CompName_Server, , , , ,
  86.                 (LInstall, MarkVision_Server, VXD_Server, Server_Util,
  87.                 PCL5_Server, ServerSunflower, Server_PrtPort, Server_Net)
  88.  
  89.  
  90. ; Drivers
  91. Drivers = "", , , , , (VXD, PCL5)
  92.  
  93.  
  94.  
  95. [ServerProducts]
  96.  
  97. ServerSunflower = "DP"
  98.  
  99.  
  100.  
  101.  
  102. [Macros]
  103.  
  104. ;  UpdateSunflowerDriver: This is called from MarkVision to update
  105. ;                                    driver only.        grw:950302 - (& VXD)
  106. ;
  107. UpdateSunflowerDriver()
  108.    (
  109.    InstallComponent(Drivers, $TRUESYSTEMDIR)
  110.    )
  111.  
  112.  
  113.  
  114. ; InstallSunflowerDriver:    Install printer driver
  115. ;                        No return value.
  116. ;
  117. InstallSunflowerDriver()
  118.     (
  119.     ; Make sure the printer and port are defined
  120.     CallMacro(GenPort, , ($Str_Sunflower))
  121.  
  122.     ; Install PCL support?
  123.     CallMacro(InstallPCL5, , )
  124.  
  125.     ; Let user make this the default printer
  126.     CallMacro(DefaultPrinter, , )
  127.  
  128.    ; Show message about DOS setup for Ruby
  129. ;   ShowPopupMessage($DOSETUPMSG)
  130.     )
  131.  
  132.  
  133.  
  134. ; PreRun:    Called before installation begins.
  135. ;
  136. PreRun()
  137.     (
  138.     ; This lets us connect to several ports in one install session
  139.     SetVariable($Port, "")
  140.  
  141.    ;  We need to restore 'express' after 'custom' or 'server.'
  142.    IfEqual($INSTALLMODE, "E", SetVariable($Install_MarkVision, $YES))
  143.    IfEqual($INSTALLMODE, "E", SetVariable($Install_PCL5, $YES))
  144.    CallMacro(MVPreRun, , )
  145.     )
  146.  
  147.  
  148.  
  149. ; Initialize:    Called before any other macros are run and before any
  150. ;                    GUI stuff is shown.
  151. ;
  152. Initialize()
  153.     (
  154.     ; Initialize some global variables
  155.     MakePathName($READMEVIEWER, , $WINDOWSDIR, "notepad.exe")
  156.  
  157.     CallMacro(PreRun, , )
  158.     )
  159.  
  160.  
  161.  
  162. ; ServerInstall: This macro 'drives' the server installation.
  163. ;
  164. ServerInstall()
  165.     (
  166.     ; Ask whether they want to install a runnable version of MarkVision too
  167.     ChooseYesNo($Install_RemoteMV, $Str_Prompt_RemoteMV, $YES,
  168.                     $HelpID_RemoteMarkVision)
  169.     IfEqual($Install_RemoteMV, $YES, AddProgress(RemoteMV_Server_Size))
  170.  
  171.     ; Make the server dir and copy the linstall files there
  172.     InstallComponent(ServerInstall)
  173.  
  174.     ; Install the remote version of MarkVision
  175.     IfEqual($Install_RemoteMV, $YES, CallMacro(InstallMarkVision, , ))
  176.  
  177.    CallMacro(InstallNetwork, , )
  178.     )
  179.  
  180.  
  181.  
  182. ; Install:    Entry point macro
  183. ;
  184. Install($cmdline)
  185.     (
  186.     CallMacro(PreRun, , )
  187.  
  188.     ; Install MarkVision?
  189.     IfEqual($Install_MarkVision, $YES, CallMacro(InstallMarkVision, , ))
  190.  
  191.     ; Install the print driver?
  192.    IfEqual($Install_PCL5, $YES, CallMacro(InstallSunflowerDriver, , ))
  193.  
  194.     ; Install the network drivers?
  195.    IfEqual($Install_Network, $YES, CallMacro(InstallNetwork, , ))
  196.  
  197.     ; Deselect any items that were installed this time
  198.    SetVariable($Install_Network, $NO)
  199.    SetVariable($Install_MarkVision, $NO)
  200.    SetVariable($Install_PCL5, $NO)
  201.     SetVariable($Install_RemoteMV, $NO)
  202.     )
  203.